<script type="text/javascript" src="/js/jquery.datatables.js"></script>
<script type="text/javascript" src="/js/app/messages-<?php echo $language ?>.js"></script>
<table id="message">
    <thead>
        <tr>
            <th><?php echo lang('messages.from'); ?></th>
            <th><?php echo lang('messages.when'); ?></th>
            <th><?php echo lang('messages.content'); ?></th>
            <th><?php echo lang('common.action'); ?></th>
        </tr>
    </thead>
    <tbody>
    <?php foreach ($messages as $message): ?>
        <tr class="gradeX">
            <td><?php echo $message['sFrom'] ?></td>
            <td><?php echo $message['dTime'] ?></td>
            <td><?php echo $message['sContent'] ?></td>
            <td class="center"><a href="#"><?php echo lang('common.view') ?></a> | <a><?php echo lang('common.delete') ?></a></td>
        </tr>
    <?php endforeach ?>

</table>